package extendsexamp;

public class Hisense extends TV{
    boolean d3;

    public boolean isD3() {
        return d3;
    }

    public void setD3(boolean d3) {
        this.d3 = d3;
    }

    @Override
    void output(){
        if (d3){
            System.out.println("子类方法：牌子："+brand
            +",尺寸："+size+"是3D电视");
        }else {
            super.output();
        }
    }
}
